/*
 * @Date         : 2022-07-08 21:50:35
 * @LastEditors  : zu1662
 * @LastEditTime : 2022-07-30 11:33:12
 * @Description  : 邮件 新增数据对象
 * 
 * Copyright © 2022 by zu1662, All Rights Reserved. 
 */
import { Type } from "class-transformer";
import { IsString, IsOptional } from "class-validator";

export class SMTPCreateDto {
  @IsString()
  @IsOptional()
  @Type(() => String)
  readonly from: string;

  @IsString()
  @Type(() => String)
  readonly to: string;

  @IsString()
  @Type(() => String)
  readonly subject: string;

  @IsString()
  @Type(() => String)
  readonly text: string;

  @IsString()
  @IsOptional()
  @Type(() => String)
  readonly html: string;
}
